<?php


class articles extends connection{
    function end(){
        $page = 1;
        if(isset($_GET['page'])){
        $page = $_GET['page']; 
        }
        $query = "SELECT * FROM articles LIMIT ".(($page-1)*2).',2';
        $data = $this->mind($query);
        return $data;
    }
}
